package com.wmh.baseservice.robot.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 
 * @author 谢骏
 * @TableName robot_api_uri
 * @createDate 2023-06-30 16:55:54
 */
@Data
@Accessors(chain = true)
@TableName("robot_api_uri")
public class RobotApiUri implements Serializable {

    /**
     * 主键
     */
    @TableId(value = COL_ID ,type = IdType.AUTO)
    private Long id;

    /**
     * 接口名称
     */
    @TableField(value = COL_NAME)
    private String name;

    /**
     * 接口 uri
     */
    @TableField(value = COL_URI)
    private String uri;

    /**
     * 是否启用
     */
    @TableField(value = COL_ENABLE)
    private Integer enable;

    /**
     * 创建时间
     */
    @TableField(value = COL_CREATE_TIME)
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    @TableField(value = COL_UPDATE_TIME)
    private LocalDateTime updateTime;

    /**
     * 0未删除 1删除
     */
    @TableLogic
    @TableField(value = COL_DELETED)
    private Integer deleted;


    /**
     * 主键
     */
    public static final String COL_ID = "id";

    /**
     * 接口 uri
     */
    public static final String COL_URI = "uri";

    /**
     * 接口名称
     */
    public static final String COL_NAME = "name";

    /**
     * 是否启用
     */
    public static final String COL_ENABLE = "enable";

    /**
     * 创建时间
     */
    public static final String COL_CREATE_TIME = "create_time";

    /**
     * 修改时间
     */
    public static final String COL_UPDATE_TIME = "update_time";

    /**
     * 0未删除 1删除
     */
    public static final String COL_DELETED = "deleted";

    @TableField(exist = false)
    static final long serialVersionUID = 1L;
}
